/*
 *  $Id: SunriseGryphon.cs 1067 2010-05-21 11:00:43Z thenn.erannor $
 *  This file is a part of Ragima CCG.
 *  (C) 2008 Ragima development group.
 *
 *  Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Air.Creatures {
    public class SunriseGryphon: CreatureCard {
        public SunriseGryphon(): base("001_a_c_sunrise_gryphon") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Air;
            Value = 100;
            SetRace<Races.Gryphon>();
            Damage = 2;
            Health = 4;
            AddManaCost(ElementType.Air, 3);
        }
        public override void SetNaturalAffects(ICollector<Affect> affects) {
            affects.Add<Affects.Flight>();
            affects.Add<SunriseGryphonAura>();
        }

        private class SunriseGryphonAura: Lands.GryphonTemple.GryphonPackAura {
            public override string Id {
                get { return AffectManager.GetCardId<SunriseGryphon>("aura"); }
            }

            protected override Affect CreateSubAffect() {
                return new SunriseGryphonAffect();
            }
        }

        private class SunriseGryphonAffect: GroupAffect {
            public SunriseGryphonAffect() {
                Add(new Affects.ModMaxHealth(1));
            }

            public override string Id {
                get { return AffectManager.GetCardId<SunriseGryphon>("aura"); }
            }
        }
    }
}
